import 'package:flutter/material.dart';

class Paymentcomp extends StatelessWidget {
  const Paymentcomp({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 80,
      width: 350,
      decoration: BoxDecoration(
        color: Colors.black12,
        borderRadius: BorderRadius.circular(30), // 设置圆角
      ),
      child: const Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          //左边
          Expanded(
              flex: 1,
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.start, // 设置内容靠左对齐
                mainAxisAlignment: MainAxisAlignment.spaceAround,
                children: [
                  Text(
                    '￥0.00',
                    style: TextStyle(fontSize: 20),
                  ),
                  Text(
                    '预估另需运费￥0.00元',
                    style: TextStyle(fontSize: 16),
                  ),
                ],
              )),
          //右边
         
          Text(
            '去下单',
            style: TextStyle(color: Colors.red, fontSize: 20),
          )

  
        ],
      ),
    );
  }
}
